/**
 *信息查验js 
 **/

/**
 * 添加信息查验
 **/
function saveXXCY(data){
	db.transaction(function (tx) {
    	tx.executeSql("INSERT INTO XXCY (TYPE,URL) VALUES (?,?)",
    			[data.type== undefined ? '':data.type,data.url== undefined ? '':data.url],
       function (tx, rs) { 
       },
	   function (tx, error) {
    	   message("添加信息查验数据失败");
	   });
    });
}


function xxcy(callback,data){
	db.transaction(function (tx) { 
		tx.executeSql('DELETE FROM XXCY', [], 
		function (tx, results){
			if (typeof(callback) == 'function'){
				if(data !=null){
					$.each(data,function(index,item){
						callback(item);
					});
				}
			}
		},
		function (tx, ex){
			message("删除信息查验数据失败");
		});  
	});
}